package de.szut.tiktaktoe.gui;

public class ConsoleField implements InterfaceField{
	static char[][] spielbrett = {
			{'╔', '═', '═', '═', '═', '═', '╗'},
			
			{'║', ' ', '║', ' ', '║', ' ', '║'},
			
			{'║', '═', '╬', '═', '╬', '═', '║'},
			
			{'║', ' ', '║', ' ', '║', ' ', '║'},
			
			{'║', '═', '╬', '═', '╬', '═', '║'},
			
			{'║', ' ', '║', ' ', '║', ' ', '║'},
			
			{'╚', '═', '═', '═', '═', '═', '╝'}
	};
	public ConsoleField(){
		for (int i = 0; i < 7; i++) {
			for (int j = 0; j < 7; j++) {
				System.out.print(spielbrett[i][j]);
			}
			System.out.println();
		}
	}
	@SuppressWarnings("unused")
	private void printLine(int line, char[][] playingField) {
		for (int i = 0; i < playingField[line].length; i++) {
			if (i % 3 == 0) {
				System.out.print('║');
			}
			else {
				System.out.print('║');
			}
			System.out.print(" " + playingField[line][i] + " ");
		}
		System.out.println('║');
	}
	@Override
	public void refreshPlayingField(char[][] playingField) {
		System.out.println("╔═════╗");
		
	}
	@Override
	public int endGame(int player) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void startRound() {
		// TODO Auto-generated method stub
		
	}
}
